import { request } from "umi";

// 查询博客列表
export async function getBlogList(params: { pageNum: number, pageSize: number, isHot?: number }) {
  return request('/api/blog/list', {
    method: 'GET',
    params
  });
}
// 获取博客详细信息
export async function getBlogDetail(params: { id: number }) {
  return request('/api/blog', {
    method: 'GET',
    params
  });
}